package com.laery0.xixin.controller;


import com.laery0.xixin.po.OverallResult;
import com.laery0.xixin.po.ResponseBean;
import com.laery0.xixin.service.OverallResultService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/api/overallResult")
public class OverallResultController {
    @Autowired
	private OverallResultService overallResultService;

    @PostMapping("/")
	public ResponseBean<List<OverallResult>> listOverallResultByOrderId(@RequestBody OverallResult overallResult) {
		return overallResultService.listOverallResultByOrderId(overallResult.getOrderId());
	}
}
